const Sequelize = require('sequelize')
const sequelize = require('../mysql')
class Message extends Sequelize.Model { }
Message.init({
  id: {
    type: Sequelize.INTEGER(11).UNSIGNED,
    autoIncrement: true,
    unique: true,
    primaryKey: true
  },
  type: Sequelize.STRING(100),
  desc: Sequelize.STRING(1000)
}, { sequelize, modelName: 'message' })
// Api.belongsTo(SubMenu, { foreignKey: 'subMenuId', targetKey: 'id' })
// 添加 fk_companyname 到 User
// Api.sync({ force: true })
module.exports = Message
